#ifndef LAYERCONFIGDIALOG_H
#define LAYERCONFIGDIALOG_H

#include <QDialog>
#include "maplayer.h"

namespace Ui {
class LayerConfigDialog;
}

class LayerConfigDialog : public QDialog
{
    Q_OBJECT

public:
    explicit LayerConfigDialog(QWidget *parent = nullptr);
    explicit LayerConfigDialog(const MapLayer &layer, QWidget *parent = nullptr);
    ~LayerConfigDialog();
    
    MapLayer layer() const;

private slots:
    void on_layerTypeComboBox_currentIndexChanged(int index);
    void on_browseButton_clicked();
    void on_buttonBox_accepted();

private:
    Ui::LayerConfigDialog *ui;
    MapLayer m_layer;
    void setupUI();
};

#endif // LAYERCONFIGDIALOG_H